//对象数组去重
function objectArrayDeweight(Arr) {
    Arr.forEach((item,index,Arr)=>{
        // console.log(Arr)
      let arr1 =  Arr.map((item1,index1)=>{
            if (index1 !=  index) {
                // console.log(index1,item1,'所暗示')
                return item1
            }
        })
        // console.log(arr1,'jj')
          arr1.forEach((item3, index3,arr1) => {
            if (!item3 ) {
                // console.log(item3, 'sdaksaoiSD卡')
                arr1.splice(index3,1)
            }
        })
        // console.log(arr1,'sdaoiao')
        arr1.forEach((item2,index2)=>{
            if (item2.rank_id == item.rank_id){
                Arr.splice(index2,1)
            }
        })
        // console.log(arr1,'后门')
    })
    // console.log(Arr)
    return Arr
}

module.exports = objectArrayDeweight
